import axios from "axios"
// import router from "../router";
import GLOBALS from "../../../components/global_yy";
axios.defaults.withCredentials = true; //允许请求的时候携带认证


// 未读数接口
export const getPushTypeNumber = (data) => axios({
    url: GLOBALS.serverSrc + "/PushType/GetPushTypeNumber",
    method: 'post',
    data
})

// 推送列表
export const getPushList = (data) => axios({
    url: GLOBALS.serverSrc + "/PushType/GetPushList",
    method: 'post',
    data
})

// 推送列表
export const getPushDetail = (data) => axios({
    url: GLOBALS.serverSrc + "/PushType/GetPushDetail",
    method: 'post',
    data
})

// 推送列表
export const PushAllRead = (data) => axios({
    url: GLOBALS.serverSrc + "/PushType/PushAllRead",
    method: 'post',
    data
})


// 核心线路图表-首页列表
export const GetLinkTypeList = (data) => axios({
    url: GLOBALS.serverSrc + "/LinkType/GetLinkTypeList",
    method: 'post',
    data
})

// 核心线路图表-首页列表
export const GetLinkDetailList = (data) => axios({
    url: GLOBALS.serverSrc + "/LinkType/GetLinkDetailList",
    method: 'post',
    data
})

// 核心线路图表-首页列表
export const GetLineFlowDetail = (data) => axios({
    url: GLOBALS.serverSrc + "/LinkType/GetLineFlowDetail",
    method: 'post',
    data
})

// 江苏银行线路一览表-首页列表
export const GetAllLinkNum = (data) => axios({
    url: GLOBALS.serverSrc + "/LinkType/GetAllLinkNum",
    method: 'post',
    data
})


// 江苏银行线路一览表-首页列表
export const GetLinkFlatTypeList = (data) => axios({
    url: GLOBALS.serverSrc + "/LinkFlat/GetLinkFlatTypeList",
    method: 'post',
    data
})

// 江苏银行线路一览表-列表
export const GetLinkFlatDetailList = (data) => axios({
    url: GLOBALS.serverSrc + "/LinkFlat/GetLinkFlatDetailList",
    method: 'post',
    data
})


// 江苏银行线路一览表-详情
export const GetLineFlatFlowDetail = (data) => axios({
    url: GLOBALS.serverSrc + "/LinkFlat/GetLineFlatFlowDetail",
    method: 'post',
    data
})



// 省外分行线路状态一览表-首页列表
export const GetLinkProTypeList = (data) => axios({
    url: GLOBALS.serverSrc + "/linkPro/GetLinkProTypeList",
    method: 'post',
    data
})

// 省外分行线路状态一览表-列表
export const GetLinkProDetailList = (data) => axios({
    url: GLOBALS.serverSrc + "/linkPro/GetLinkProDetailList",
    method: 'post',
    data
})


// 省外分行线路状态一览表-详情
export const GetLineProFlowDetail = (data) => axios({
    url: GLOBALS.serverSrc + "/linkPro/GetLineProFlowDetail",
    method: 'post',
    data
})
